package com.tablefood.domain;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * ShopUser entity. @author MyEclipse Persistence Tools
 */

public class ShopUser implements java.io.Serializable {

	// Fields

	private Long userid;
	private String username;
	private String userpass;
	private String useremail;
	private String status;
	private Timestamp createTime;
	private Timestamp updateTime;
	private Set shopOrders = new HashSet(0);
	private Set shopCarts = new HashSet(0);
	private Set shopProfiles = new HashSet(0);

	// Constructors

	/** default constructor */
	public ShopUser() {
		username = "无";
		userpass = "无";
		useremail = "无";
		status = "1";
		createTime = new Timestamp(System.currentTimeMillis()); 
		updateTime = new Timestamp(System.currentTimeMillis());
	}

	/** minimal constructor */
	public ShopUser(String username, String userpass, String useremail,
			String status, Timestamp createTime, Timestamp updateTime) {
		this.username = username;
		this.userpass = userpass;
		this.useremail = useremail;
		this.status = status;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	/** full constructor */
	public ShopUser(String username, String userpass, String useremail,
			String status, Timestamp createTime, Timestamp updateTime,
			Set shopOrders, Set shopCarts, Set shopProfiles) {
		this.username = username;
		this.userpass = userpass;
		this.useremail = useremail;
		this.status = status;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.shopOrders = shopOrders;
		this.shopCarts = shopCarts;
		this.shopProfiles = shopProfiles;
	}

	// Property accessors

	public Long getUserid() {
		return this.userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserpass() {
		return this.userpass;
	}

	public void setUserpass(String userpass) {
		this.userpass = userpass;
	}

	public String getUseremail() {
		return this.useremail;
	}

	public void setUseremail(String useremail) {
		this.useremail = useremail;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public Set getShopOrders() {
		return this.shopOrders;
	}

	public void setShopOrders(Set shopOrders) {
		this.shopOrders = shopOrders;
	}

	public Set getShopCarts() {
		return this.shopCarts;
	}

	public void setShopCarts(Set shopCarts) {
		this.shopCarts = shopCarts;
	}

	public Set getShopProfiles() {
		return this.shopProfiles;
	}

	public void setShopProfiles(Set shopProfiles) {
		this.shopProfiles = shopProfiles;
	}

}